package com.ruoyi.web.controller.applet;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.HospitalSubscribeGroupPurchaseOrder;
import com.ruoyi.system.service.IHospitalSubscribeGroupPurchaseOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 团队订单Controller
 * 
 * @author ruoyi
 * @date 2025-06-12
 */
@RestController
@RequestMapping("/applet/group/purchase/order")
public class HospitalSubscribeGroupPurchaseOrderAppletController extends BaseController
{
    @Autowired
    private IHospitalSubscribeGroupPurchaseOrderService hospitalSubscribeGroupPurchaseOrderService;

    /**
     * 团队订单详情
     */
    @GetMapping("/getGroupPurchaseOrderInfo")
    public AjaxResult getGroupPurchaseOrderInfo(@RequestParam("orderNo") String orderNo)
    {
        HospitalSubscribeGroupPurchaseOrder order = new HospitalSubscribeGroupPurchaseOrder();
        order.setOrderNo(orderNo);
        return success(hospitalSubscribeGroupPurchaseOrderService.getGroupPurchaseOrderInfo(order));
    }

}
